import request from '@/config/request'

/**
 * 获取角色分页
 */
export const getRolePages = () => {
  return request.get({ url: '/system/role/page' })
}

/**
 * 获取角色列表
 */
export const getRoleList = () => {
  return request.get({ url: '/system/role/list' })
}

/**
 * 设置用户角色
 */
export const setUserRole = (data: any) => {
  return request.post({ url: '/system/role/set-user-role', data })
}

/**
 * 获取用户角色
 */
export const getUserRole = (params: any) => {
  return request.get({ url: '/system/role/get-user-role', params })
}
